import { People } from './people';
import { Injectable } from '@angular/core';

@Injectable()
export class PeopleService {

    people: People;

    // http://www.cnblogs.com/yanxiaodi/p/5750860.html

    // private static instance: People = new People();

    // constructor() {
    //     if (AppGlobal.instance) {
    //         throw new Error("错误: 请使用AppGlobal.getInstance() 代替使用new.");
    //     }
    //     AppGlobal.instance = this;
    // }

    // public static getInstance(): People {
    //     return People.instance;
    // }

    


} 